#ifndef SETTING_H
#define SETTING_H

#include <QDialog>
#include "uart_core.h"

namespace Ui {
class UartSetting;
}
namespace UartNamespace {
class Uartcore;
}
namespace UartNamespace {
class UartSetting : public QDialog
{
    Q_OBJECT

public:
    explicit UartSetting(QWidget *parent = 0);
    void AddAvailableSerialPortsToBox(Uartcore* m_serial_);
    inline void UartSettingSetUartcore(Uartcore *uart_core) {
      uart_core_ = uart_core;
    }

    ~UartSetting();

private slots:
    void on_buttonBox_accepted();

private:
    Ui::UartSetting *ui;
    UartNamespace::Uartcore *uart_core_ = NULL;
};
}
#endif // SETTING_H
